import request from '@/utils/request'

// 查询TTS引擎配置列表
export function listTTSEngine(query) {
  return request({
    url: '/tzai/tts/engine/list',
    method: 'get',
    params: query
  })
}

// 查询TTS引擎配置详细
export function getTTSEngine(engineId) {
  return request({
    url: '/tzai/tts/engine/' + engineId,
    method: 'get'
  })
}

// 新增TTS引擎配置
export function addTTSEngine(data) {
  return request({
    url: '/tzai/tts/engine',
    method: 'post',
    data: data
  })
}

// 修改TTS引擎配置
export function updateTTSEngine(data) {
  return request({
    url: '/tzai/tts/engine',
    method: 'put',
    data: data
  })
}

// 删除TTS引擎配置
export function delTTSEngine(engineId) {
  return request({
    url: '/tzai/tts/engine/' + engineId,
    method: 'delete'
  })
}
